package com.misboot.document.model;

import cn.ewsd.common.model.MCoreBase;
import org.apache.commons.lang.builder.ReflectionToStringBuilder;

/**
 * @ClassName OssObject
 * @Description 阿里云分页数据
 * @Author 宋景民<songjingmin@zuoyoutech.com>
 * @Date 2019/4/26 13:50
 * @Version 1.0
 */
public class OssPageParam extends MCoreBase{

	private String bucketName;
	private String nextMarker;
	private String keyPrefix;  // 指定前缀。 "图片/test/";
	private int maxKeys = 100;
	private String endpoint; //
	//当前是第几页
	private int pageNo = 1;
	//每页多少条数据
	private int pageSize = 20;



	public OssPageParam() {
	}

	public OssPageParam(String bucketName, String nextMarker, String keyPrefix, int maxKeys, String endpoint, int pageNo, int pageSize) {
		this.bucketName = bucketName;
		this.nextMarker = nextMarker;
		this.keyPrefix = keyPrefix;
		this.maxKeys = maxKeys;
		this.endpoint = endpoint;
		this.pageNo = pageNo;
		this.pageSize = pageSize;
	}

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getBucketName() {
		return bucketName;
	}

	public void setBucketName(String bucketName) {
		this.bucketName = bucketName;
	}

	public String getNextMarker() {
		return nextMarker;
	}

	public void setNextMarker(String nextMarker) {
		this.nextMarker = nextMarker;
	}

	public String getKeyPrefix() {
		return keyPrefix;
	}

	public void setKeyPrefix(String keyPrefix) {
		this.keyPrefix = keyPrefix;
	}

	public int getMaxKeys() {
		return maxKeys;
	}

	public void setMaxKeys(int maxKeys) {
		this.maxKeys = maxKeys;
	}

	public String getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(String endpoint) {
		this.endpoint = endpoint;
	}

	@Override
	public String toString() {
		return  ReflectionToStringBuilder.toString(this);
	}


}
